package org;

import org.rsbot.event.listeners.PaintListener;
import org.rsbot.script.Script;
import org.util.MethodGather;
import org.util.Tray;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: Tim
 * Date: 9/8/11
 * Time: 5:01 PM
 * To change this template use File | Settings | File Templates.
 */
public class KWarrior extends Script implements PaintListener{
                      MethodGather methodGather;
    Tray tr;
    public boolean onStart(){
        Init();
      return true;
    }

    private void Init() {
        makeContext();
        tr= new Tray();
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                tr.tray();
            }
        });

    }

    private void makeContext() {
        methodGather= new MethodGather(this);
    }

    public void onRepaint(Graphics graphics) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    public int loop() {
        return 0;  //To change body of implemented methods use File | Settings | File Templates.
    }
    public void onFinish(){
        tr.shutDown();

    }
}
